//
//  FlyBaseViewController.h
//  PartyBuildingCloud
//
//  Created by lifayu on 16/9/20.
//  Copyright © 2016年 贵阳飞云科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MBProgressHUD.h>

@interface FlyBaseViewController : UIViewController<UIActionSheetDelegate>

@property (nonatomic, strong) NSMutableArray *dataSource;

@property (assign, nonatomic) BOOL isNeedPopToRoot;// default is NO

- (void)configNavigationLeftItemWithImage:(UIImage *)image;
- (void)configNavigationLeftItemWithTitle:(NSString *)title;
- (void)leftBarButtonAction:(id)sender;

- (void)configNavigationRightItemWithImage:(UIImage *)image;
- (void)configNavigationRightItmeWithTitle:(NSString *)title titleColor:(UIColor *)titleColor font:(UIFont *)font;
- (void)rightBarButtonAction:(id)sender;

- (void)showLoadingInView:(UIView *)view;
- (void)hideLoadingView;

- (IBAction)contactService:(id)sender;//联系客服

- (void)showTipMsg:(NSString *)message;
- (void)showToastMsg:(NSString*)msg;
- (BOOL)IsChinese:(NSString *)str;

- (void)showNoDataViewWithText:(NSString *)text;
- (void)showNoDataViewWithText:(NSString *)text offset:(CGFloat)offset;
- (void)hideNoDataView;

+ (instancetype)viewController;//主要用来从storyboard 加载控制器 子类重写

- (BOOL)userIsLogin;

@end
